package com.xrit.sunnyday.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.xrit.sunnyday.dao.SetmealMobileDao;
import com.xrit.sunnyday.pojo.Setmeal;
import com.xrit.sunnyday.service.SetmealMobileService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * 手机端 静态套餐页面
 */
@Service(interfaceClass = SetmealMobileService.class)
public class SetmealMobileServiceImpl implements SetmealMobileService{

    @Autowired
    private SetmealMobileDao setmealMobileDao;

    /**
     * 查询所有
     *
     * @return
     */
    @Override
    public List<Setmeal> findAll() {
        return setmealMobileDao.findAll();
    }

    /**
     * 查询套餐详情
     *
     * @param id
     * @return
     */
    @Override
    public Setmeal findDetailById(int id) {
        return setmealMobileDao.findDetailById(id);
    }
}
